package com.ym.medical.domain.entity;

import com.ym.common.constant.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.util.Date;

/**
 * Prepaid对象 prepayment
 *
 * @author ym
 * @date 2020-08-24
 */
@ApiModel("Prepaid-实体")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "prepayment")
public class PrepaymentEntity extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户id
	 */
	@ApiModelProperty("用户id")
	private Long userId;

	/**
	 * 患者id
	 */
	@ApiModelProperty("患者id")
	private Long parentId;

	/**
	 * 定价规则id
	 */
	@ApiModelProperty("定价规则id")
	private Long pricingRuleId;

	/**
	 * 剩余金额
	 */
	@ApiModelProperty("剩余金额")
	private Double balance;

	/**
	 * 剩余次数
	 */
	@ApiModelProperty("剩余次数")
	private Integer remainingTimes;

	/**
	 * 到期时间
	 */
	@ApiModelProperty("到期时间")
	private Date expireDate;

	/**
	 * 创建时间
	 */
	@ApiModelProperty("创建时间")
	private Date createTime;

}
